﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zhaoxi.NET6.Interfaces;

namespace Zhaoxi.NET6.Services
{
    public class TestServiceB : ITestServiceB
    {
        public ITestServiceA _TestServiceA;
        public TestServiceB(ITestServiceA testServiceA)
        {
            _TestServiceA = testServiceA;
            Console.WriteLine($"{GetType().Name} 被构造~~");
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string ShowB()
        {
            return $"this is from {GetType().FullName} ShowB  调用 {_TestServiceA.ShowA()}";
        }
    }
}
